package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@TableName("user")
@ApiModel(value = "order对象", description = "")
@ToString
@Data
public class Order {
    private static final long serialVersionUID = 1L;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("书籍下单id")
    private Long oid;
    @ApiModelProperty("用户名")
    private String uname;
    @JsonProperty(value="ISBN")
    @ApiModelProperty("书籍号")
    private Long ISBN;
    @ApiModelProperty("数量")
    private Integer quantity;
    @ApiModelProperty("订单id")
    private Long did;
}
